//
//  YWDownloadArchiverTool.h
//  videoTest3
//
//  Created by jun peng on 2022/7/28.
//

#import <Foundation/Foundation.h>
#import "FMDB.h"
#import "YWDownloadStatus3.h"
NS_ASSUME_NONNULL_BEGIN

//用数据库保存视频文件模型信息（不包括视频文件、视频文件是直接下载去沙盒文件夹里的）
@interface YWDownloadDataBaseTool : NSObject


//增
+ (void)addDownloadingStatus:(YWDownloadStatus3 *)status;
+ (void)addDownloadingStatuses:(NSArray *)statusArray;

//删
+ (void)removeDownloadingStatus:(YWDownloadStatus3 *)status;
+ (void)removeDownloadingAllNewsDataStatus;

//改
+ (void)updateDownloadingStatus:(YWDownloadStatus3 *)status;

//查
+ (NSArray *)getDownloadingAllNewsDataStatus;
+ (YWDownloadStatus3 *)getDownloadingStatusWithVideoUrl:(NSString *)VideoUrl;





//增
+ (void)addFinishStatus:(YWDownloadStatus3 *)status;
+ (void)addFinishStatuses:(NSArray *)statusArray;

//删
+ (void)removeFinishStatus:(YWDownloadStatus3 *)status;
+ (void)removeFinishAllNewsDataStatus;

//改
+ (void)updateFinishStatus:(YWDownloadStatus3 *)status;

//查
+ (NSArray *)getFinishAllNewsDataStatus;
+ (YWDownloadStatus3 *)getFinishStatusWithVideoUrl:(NSString *)VideoUrl;


@end

NS_ASSUME_NONNULL_END
